AssetPlacement

data class AssetPlacement(val parent: DesignBlock? = null, val center: PointF? = null)

Where the block created from an asset is placed.

Parameters

parent

the block that the new block is added to. null adds it to the current page, and so does an invalid block such as -1.

center

the center of the new block, in design units relative to parent. Both coordinates must be finite. null places the block automatically.

Constructors

Link copied to clipboard
constructor(parent: DesignBlock? = null, center: PointF? = null)

Properties

Link copied to clipboard
val center: PointF? = null
Link copied to clipboard
val parent: DesignBlock? = null